<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2018-01-25 15:54:08
 * @Description: 积分配置
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-21 15:06:42
 * @FilePath: /team_commission/database/migrations/shop/user/2018_01_25_152403_create_sign_config.php
 */

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSignConfig extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sign_config', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->id();
            $table->integer('proportion')->default(0)->comment('可折现比例');
            $table->integer('cash')->default(0)->comment('抵扣比例');
            $table->integer('block')->default(0)->comment('分段');
            $table->smallInteger('onepoint')->default(0)->comment('每次几分');
            $table->smallInteger('days')->default(0)->comment('连续几天有奖励');
            $table->smallInteger('reward')->default(0)->comment('奖励几分');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sign_config');
    }
}
